//
//  TextureTextAppDelegate.m
//  TextureText
//
//  Created by 畑圭輔 on 10/03/07.
//  Copyright Keisuke Hata 2010. All rights reserved.
//

#import "TextureTextAppDelegate.h"
#import "EAGLView.h"

@implementation TextureTextAppDelegate

@synthesize window;
@synthesize glView;
@synthesize settingView;

- (void) applicationDidFinishLaunching:(UIApplication *)application
{
	[glView startAnimation];
	settingView.glView = glView;
	[window addSubview:settingView.view];
}

- (void) applicationWillResignActive:(UIApplication *)application
{
	[glView stopAnimation];
}

- (void) applicationDidBecomeActive:(UIApplication *)application
{
	[glView startAnimation];
}

- (void)applicationWillTerminate:(UIApplication *)application
{
	[glView stopAnimation];
}

- (void) dealloc
{
	[window release];
	[glView release];
	
	[super dealloc];
}

@end
